﻿using System;

namespace Nydus.WebForms.Frontend.Helpers
{
    public class EventArgs<T> : EventArgs 
    {
        public EventArgs(T item)
        {
            Item = item;
        }

        public T Item { get; set; }
    }

    public class EventArgs<T, S> : EventArgs
    {
        public EventArgs(T item1, S item2)
        {
            Item1 = item1;
            Item2 = item2;
        }

        public T Item1 { get; set; }
        public S Item2 { get; set; }
    }

    public delegate void DataEventHandler<T>(object sender, EventArgs<T> e);

}